<?php

      mysql_connect("localhost","localhost","hostlocal");

      mysql_select_db("vircast");

      $mname = "woo";
      $msex = "0";
      $myear = "1986";


//      mysql_query("INSERT INTO people (name,sex,year) values ('".$mname."','".$sex."','".$myear."')");


      $q=mysql_query("SELECT * FROM people WHERE birthyear>'".$_REQUEST['year']."'");

      while($e=mysql_fetch_assoc($q))

              $output[]=$e;

           print(json_encode($output));
     
    mysql_close();
?>

